<template>
  <div class="labor u-flex-between">
    <div class="labor-left">
      <el-button type="primary" size="mini" @click="$emit('addChange', 1)"
        >添加</el-button
      >
      <el-button
        type="danger"
        size="mini"
        :disabled="disabled"
        @click="$emit('delChange')"
        >删除</el-button
      >
    </div>
    <div class="labor-right">
      <el-button
        size="mini"
        icon="el-icon-search"
        @click="$emit('displaySearch')"
      ></el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "labor",
  props: {
    disabled: {
      type: Boolean,
      default: true,
    },
  },
}
</script>

<style lang="scss" scoped>
.labor {
  padding: 10px 0;
}
</style>
